import request from "../plugins/http"
//请求示例
export const page = (data) => {
    return request({
        url: "/spider-source/page",
        method: "get",
        data,
        config: {
            timeout: 10000
        }
    })
}
export const detail = (id) => {
    return request({
        url: "/spider-source/detail/" + id,
        method: "get",
    })
}
export const delete_one = (id) => {
    return request({
        url: `/spider-source/delete/${id}`,
        method: "delete",
    })
}
export const post_data = (data) => {
    return request({
        url: `/spider-source/${!data.id ? 'save' : 'update'}`,
        method: "post",
        data,
        config: {
            timeout: 10000
        }
    })
}